package com.woniuxy.commons.service;

import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "hosp-doctor")
public interface IDoctorService {
    @GetMapping("/doctor/findDoctorById/{id}")
    public ResponseResult findDoctorById(@PathVariable(value = "id") long id);

    @GetMapping("/doctor/findDoctorByName/{name}")
    public ResponseResult findDoctorByName(@PathVariable(value = "name") String name);
}
